package com.example.shortmessage.model;

import com.example.shortmessage.contract.DetailsContract;
import com.example.shortmessage.data.entity.MessageData;

import org.litepal.LitePal;

import java.util.List;

public class DetailsModel implements DetailsContract.Model {
    @Override
    public List<MessageData> query(String number) {
        return LitePal.where("number = ?", number).find(MessageData.class);
    }
}
